home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / filutil / dfmake.zip / LIB / DFLIB.H < prev    next >
C/C++ Source or Header  |  1994-07-30  |  705b  |  31 lines

  1.  
  2. #define DF_SIGN     0x41544144 // 'DATA'
  3. #define DF_LENGTH   21
  4.  
  5. #define DF_NAME_S       13
  6. #define DF_OFFSET_S     4
  7. #define DF_LENGTH_S     4
  8.  
  9. #define DF_SIGN_SIZE    4
  10. #define DF_OFFSET_SIZE  4
  11. #define DF_NFILES_SIZE  2
  12.  
  13. #define DF_SIGN_OFF         -DF_SIGN_SIZE
  14. #define DF_OFFSET_OFF   -DF_OFFSET_SIZE+DF_SIGN_OFF
  15.  
  16. struct datafile {
  17.     BYTE    name[13];
  18.     DWORD   offset;
  19.     DWORD   length;
  20.     struct datafile *next;
  21. };
  22.  
  23. typedef struct datafile DATAFILE;
  24.  
  25. WORD    __cdecl     df_open(STR);
  26. void    __cdecl     df_close(WORD);
  27. DATAFILE * __cdecl  df_getinfos(WORD);
  28. void    __cdecl     df_delinfos(DATAFILE *);
  29. PTR     __cdecl     df_read(WORD,DATAFILE *,STR,PTR);
  30.  
  31.